package com.yazi.mxz.behavior.jackson.filter;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.yazi.mxz.behavior.entity.repository.GoodsClassify;

public abstract class GoodsClassifyFilter {

	public static FilterProvider get() {
		
		final Set<String> classify = new HashSet<String>();
		classify.add("classifyId");
		classify.add("parentId");
		classify.add("name");
		classify.add("deep");
		classify.add("pic");
		
		return new SimpleFilterProvider()
				.addFilter(GoodsClassify.class.getSimpleName(),
						SimpleBeanPropertyFilter.filterOutAllExcept(classify));
	}

}
